namespace EFCodeFirst
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class REAL_RX_ALLERGY_1_201810
    {
        public long? PATIENT_ID { get; set; }

        [StringLength(20)]
        public string ALLERGY_CODE_TYPE { get; set; }

        [StringLength(20)]
        public string ALLERGY_CODE_VALUE { get; set; }

        [Key]
        [Column(Order = 0)]
        public DateTime ENTERED { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(30)]
        public string ENTERED_BY { get; set; }

        [Key]
        [Column(Order = 2)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int VERSION_NUM { get; set; }

        public long? RX_ID { get; set; }

        [StringLength(100)]
        public string ALLERGY_CODE_NAME { get; set; }

        [Key]
        [Column(Order = 3)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long RX_ALLERGY_ID { get; set; }
    }
}
